package com.acme.task5;

public class TextModifier {
	
	public static void main(String[] args) {	
		
		String str1 = args[0];
		
		for(int i=0;i<str1.length();i++){
			if(Character.isDigit(str1.charAt(i))){
				System.out.print("");
			}
			else{
				switch(str1.charAt(i)){
				case '+':
					System.out.print("++");
					break;
				case '-':
					System.out.print("--");
					break;
				default:
					System.out.print(str1.charAt(i));
					break;
				}
			}
		}
	}
}